import request from '@/utils/request'

// 查询商品种类管理列表
export function listCommodityCategory(query) {
  return request({
    url: '/shopping/commodityCategory/list',
    method: 'get',
    params: query
  })
}

// 查询商品种类管理详细
export function getCommodityCategory(id) {
  return request({
    url: '/shopping/commodityCategory/' + id,
    method: 'get'
  })
}

// 新增商品种类管理
export function addCommodityCategory(data) {
  return request({
    url: '/shopping/commodityCategory',
    method: 'post',
    data: data
  })
}

// 修改商品种类管理
export function updateCommodityCategory(data) {
  return request({
    url: '/shopping/commodityCategory',
    method: 'put',
    data: data
  })
}

// 删除商品种类管理
export function delCommodityCategory(id) {
  return request({
    url: '/shopping/commodityCategory/' + id,
    method: 'delete'
  })
}
